﻿function StringBuilder(value) {
    this.s = [];
    this.append(value);
}
StringBuilder.prototype.append = function(value) {
    if (value) this.s.push(value);
}
StringBuilder.prototype.clear = function() {
    this.s = [];
}
StringBuilder.prototype.toString = function() {
    return this.s.join('');
}